package com.ita.acmsystem.merchant.util;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

public class SimpleJsonUtil {
	private static ObjectMapper mapper = new ObjectMapper();

	public static String format(Object o) {
		String json = null;
		try {
			json = mapper.writeValueAsString(o);
		} catch (JsonProcessingException e) {
			json = "[]";
			e.printStackTrace();
		}
		return json;
	}
}
